<?php

use Doraemon\cache\PositionModule\ApiCounter;
use Doraemon\cache\PositionModule\Popups;
use Doraemon\cache\TotemCache;
use Doraemon\service\Popups\PopupsApi;
use Doraemon\cache\UserNoter;
use Doraemon\model\Member;
use Doraemon\tools\Popup;

/**
 * Class TabAction
 */
class TabAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {
        $tab = $this->getRequest()->getPost('tab', 0);
        $tab = $tab ? $tab : $this->getRequest()->getQuery('tab', 1);


        $extend = \Doraemon\service\position\Api::getTabPopups($this->uid, [], [], ['tab' => $tab]);

        $this->setSuccess(null, self::API_CODE_SUCCES, $extend);
    }



}